Skip to content

[FEAT] Developer Section - Expose OpenAI-compatible inference gateway endpoints - #47

Open
Henrik-3 wants to merge 2 commits into
masterfrom
feat/developer-section/gateway-endpoints
Open

[FEAT] Developer Section - Expose OpenAI-compatible inference gateway endpoints#47
Henrik-3 wants to merge 2 commits into
masterfrom
feat/developer-section/gateway-endpoints

Conversation

@Henrik-3

@Henrik-3 Henrik-3 commented Aug 2, 2026

Copy link
Copy Markdown
Member

Implement OpenAI-compatible API gateway with key-based authentication

  • Add gateway_projects and gateway_api_keys tables for managing external API access
  • Implement OpenAI-compatible routes for /v1/chat/completions, /v1/responses, and /v1/models
  • Add bearer token authentication with scope validation (inference:read, inference:write)
  • Integrate omniference skins to bridge gateway requests to internal provider engines
  • Support team-based model access policies and usage tracking via gateway headers
  • Add automated tests for authentication, revoked/expired keys, and team policy enforcement
  • Bump axum compatibility by adding axum07 bridge for omniference integration

- Add `gateway_projects` and `gateway_api_keys` tables for managing external API access
- Implement OpenAI-compatible routes for `/v1/chat/completions`, `/v1/responses`, and `/v1/models`
- Add bearer token authentication with scope validation (`inference:read`, `inference:write`)
- Integrate `omniference` skins to bridge gateway requests to internal provider engines
- Support team-based model access policies and usage tracking via gateway headers
- Add automated tests for authentication, revoked/expired keys, and team policy enforcement
- Bump `axum` compatibility by adding `axum07` bridge for `omniference` integration
@coderabbitai

coderabbitai Bot commented Aug 2, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 5bce1893-c558-4222-902e-281c0158eb00

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

- Upgrade `axum` to 0.8 and `tower-http` to 0.6, removing `axum07` compatibility bridge
- Implement middleware-based authentication and request ID tracking for OpenAI routes
- Integrate `QueuedCostSink` with `OmniferenceEngine` for asynchronous usage and cost tracking
- Add budget validation to gateway requests to block access when user quotas are exceeded
- Refactor model resolution to support `provider/model` slug format and team-aware access policies
- Utilize `omniference` skins for standardized OpenAI error handling and metadata injection
- Optimize API key usage updates by throttling database writes to once per minute per key
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant